Owen Taylor [Tue, 23 Oct 2001 16:02:23 +0000 (16:02 +0000)]
Remove G_DISABLE_CONST_RETURNS.
Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
* gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
G_CONST_RETURN. (Murray Cumming)
* gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
Make G_CONST_RETURN.
* gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
results of g_get_home_dir().
* gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
copy. Storing the return from gtk_entry_get_text() is evil.
* gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
gtk/gtksignal.c: Add const.
* gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
* gtk/gtktreeview.c: Namespace object data keys to be safe, even
if we are setting them on private widgets.
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
Duplicate entry->text before setting it as object data.
Havoc Pennington [Mon, 22 Oct 2001 23:35:03 +0000 (23:35 +0000)]
don't back up a char from the end iterator, fixes #61859 ("can't put
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
up a char from the end iterator, fixes #61859 ("can't put cursor
at the end of the buffer")
* gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
to work with delimiters other than newline.
* tests/testtextbuffer.c: add some tests for get_chars_in_line,
get_bytes_in_line
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
last line, since the newline is no longer counted.
(gtk_text_iter_get_bytes_in_line): ditto
Tor Lillqvist [Mon, 22 Oct 2001 23:27:19 +0000 (23:27 +0000)]
file makefile.msc.in was initially added on branch gtk-1-3-win32-production.
Tor Lillqvist [Mon, 22 Oct 2001 23:26:09 +0000 (23:26 +0000)]
file gdk-1.3-win32-production.pc.in was initially added on branch gtk-1-3-win32-production.
Tor Lillqvist [Mon, 22 Oct 2001 23:26:09 +0000 (23:26 +0000)]
file gtk+-1.3-win32-production.pc.in was initially added on branch gtk-1-3-win32-production.
Havoc Pennington [Mon, 22 Oct 2001 22:28:27 +0000 (22:28 +0000)]
add assertion that #58290 would trigger if it reappeared, I think
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
#58290 would trigger if it reappeared, I think
Havoc Pennington [Mon, 22 Oct 2001 22:17:21 +0000 (22:17 +0000)]
add temporary code to dump btree contents on assertion failure described
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
add temporary code to dump btree contents on assertion failure
described in #62656
* gtk/gtktextbtree.c (ensure_end_iter_segment): add some
assertions that we're getting the right end iter segment
* gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
verify that we aren't on the end iterator after moving
forward one segment - fixes return value in an obscure case.
Also, some trivial code cleanup/rearranging.
Havoc Pennington [Mon, 22 Oct 2001 21:52:47 +0000 (21:52 +0000)]
add a #error unless you define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextlayout.h: add a #error unless you define
GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
* gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
Havoc Pennington [Mon, 22 Oct 2001 21:28:08 +0000 (21:28 +0000)]
fix #62365
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
#62365
Havoc Pennington [Mon, 22 Oct 2001 21:06:55 +0000 (21:06 +0000)]
fix #62436
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_get_window_type): fix
#62436
Havoc Pennington [Mon, 22 Oct 2001 21:05:28 +0000 (21:05 +0000)]
Fix #62366
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
#62366
Owen Taylor [Mon, 22 Oct 2001 21:01:47 +0000 (21:01 +0000)]
Add cursor-position, selection-bound properties. (#62148, reported by
Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtklabel.c: Add cursor-position, selection-bound
properties. (#62148, reported by Padraig O'Briain)
* gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
to cursor_position. (1.3.x addition, text_position is an awful
name.) Make cursor_position read-only to avoid sticky questions
of interaction with selection_bound. (#62636, reported by
Padraig O'Briain)
Owen Taylor [Mon, 22 Oct 2001 20:47:01 +0000 (20:47 +0000)]
Fixing popup menus to have "Paste" sensitized correctly. Original patches
Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
Fixing popup menus to have "Paste" sensitized correctly. Original
patches from Damian Ivereigh, much mangled.
* gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
gtk_selection_data_targets_include_text(). (#60854)
* gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
the clipboard has text" function gtk_clipboard_wait_is_text_available.
(#60854)
* gtk/gtkentry.c: Only enable the paste item if the clipboard
contains text. (#60973)
* gtk/gtktextview.c: Only enable the paste item if the clipboard
contains text. (#60975)
Havoc Pennington [Mon, 22 Oct 2001 19:26:16 +0000 (19:26 +0000)]
rip out "height_lines" and "width_columns" properties, it doesn't make
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c (gtk_text_view_class_init): rip out
"height_lines" and "width_columns" properties, it doesn't make
sense to set the size request on a text view really. #62103
Jonathan Blandford [Mon, 22 Oct 2001 19:19:27 +0000 (19:19 +0000)]
Realized g_node_depth is broken, and that it's not worth being consistent
Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
g_node_depth is broken, and that it's not worth being consistent
with it.
Havoc Pennington [Mon, 22 Oct 2001 19:13:28 +0000 (19:13 +0000)]
Clarify behavior in docs, #61777 (gtk_text_iter_forward_search)
2001-10-22 Havoc Pennington <hp@redhat.com>
* gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
docs, #61777
(gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
change the two boolean args to a flags field, so we can extend
to add case insensitive, regexp searches later. #61852
Jonathan Blandford [Mon, 22 Oct 2001 19:08:32 +0000 (19:08 +0000)]
update docs to reflect reality, #62810
Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
reflect reality, #62810
Jonathan Blandford [Mon, 22 Oct 2001 18:24:29 +0000 (18:24 +0000)]
Remove handle_box from App demo.
Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
* demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
* gtk/gtktreeview.c (size_allocate): Move to a different drawing
system. Instead of having a window the size of the tree, we have
a window the size of widget->allocation, and simply draw with the
offset.
(coords_are_over_arrow): ditto. Move to window coordinates.
(do_prelight): ditto
(do_unprelight): ditto
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
Minor fix from Kristian Rietveld to fix unsorted case.
jacob berkman [Mon, 22 Oct 2001 17:01:11 +0000 (17:01 +0000)]
don't cast a PIXTEXT cell to a PIXMAP cell (fixes crash when using PIXTEXT
2001-10-22 jacob berkman <jacob@ximian.com>
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
a PIXMAP cell (fixes crash when using PIXTEXT cells)
Owen Taylor [Mon, 22 Oct 2001 14:31:06 +0000 (14:31 +0000)]
Deprecate gtk_entry_set_editable. (#58768, Vitaly Tishkov)
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
(#58768, Vitaly Tishkov)
* gtk/gtkobject.h: Deprecate with abandon.
(#61942, Vitaly Tishkov, Matthias Clasen)
* gtk/gtksignal.h: Deprecate everything.
* gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
(#61942, Matthias Clasen)
* gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
Havoc Pennington)
* gtk/gtkitemfactory.h: Deprecate compat functions
for GtkMenuFactory code. (#62071)
* gdk/gdkdrawable.h: Deprecate gdk_draw_string,
gdk_draw_text,gdk_draw_text_wc. (#62071)
* gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
to gtk_clipboard_get().
Owen Taylor [Mon, 22 Oct 2001 14:28:37 +0000 (14:28 +0000)]
Remove note about deprecation. (We've standard on G_CONST_RETURN rather
Sat Oct 20 18:35:21 2001 Owen Taylor <otaylor@redhat.com>
* gtk/tmpl/gtkentry.sgml (Note): Remove note about
deprecation. (We've standard on G_CONST_RETURN
rather than the reverse.) #58768, Vitaly Tishkov.
Owen Taylor [Mon, 22 Oct 2001 14:14:33 +0000 (14:14 +0000)]
Don't call g_thread_init(), we don't want to link to -lgthread if we don't
Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
g_thread_init(), we don't want to link to -lgthread if we don't
have to.
Owen Taylor [Mon, 22 Oct 2001 12:59:21 +0000 (12:59 +0000)]
Add a function, gdk_threads_init() that must be explicitely called to
Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
Add a function, gdk_threads_init() that must be explicitely
called to enable the GDK thread mutex.
Jakub Steiner [Mon, 22 Oct 2001 11:59:39 +0000 (11:59 +0000)]
stroke fix
Jakub Steiner [Mon, 22 Oct 2001 11:50:18 +0000 (11:50 +0000)]
no body parts
Owen Taylor [Mon, 22 Oct 2001 04:34:42 +0000 (04:34 +0000)]
Fix problem with g_return_if_fail return value.
Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
problem with g_return_if_fail return value.
* gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
virtual atom code from the gdk-multihead branch, removing the per-display
part. Virtualizing atoms needs to be done now to prevent compat
breakage in direct Xlib accessing code in the future. (#62208)
* gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
* gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
an opaque pointer type so the compiler catches attempts
to mingle it with X atoms.
* gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
tests/testdnd.c,tests/testselection.c:
Fix up for above atom changes.
* gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
now have the ability to add custom predefines.
* gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
to gtk_clipboard_get().
* gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
for GdkAtom => pointer change.
* gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
atoms, fix for GdkAtom => pointer change.
Kristian Rietveld [Sun, 21 Oct 2001 22:28:55 +0000 (22:28 +0000)]
remove ARROW_SIZE constant, use new function spin_button_get_arrow_size()
Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
new function spin_button_get_arrow_size() instead.
* gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
arrow was hardcoded, it's now variable.
Fixes bug #50200
Manish Singh [Sun, 21 Oct 2001 01:19:44 +0000 (01:19 +0000)]
eh, typo
Manish Singh [Sun, 21 Oct 2001 01:18:42 +0000 (01:18 +0000)]
PROP_MODEL and PROP_EXPANDER_COLUMN can be NULL, so don't do a object case
Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
PROP_EXPANDER_COLUMN can be NULL, so don't do a object case check
for those
Owen Taylor [Sat, 20 Oct 2001 23:39:32 +0000 (23:39 +0000)]
at Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
* demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
in favor of g_signal_*, gtk_object_* in favor of
g_object_*.
Keld Jørn Simonsen [Sat, 20 Oct 2001 21:47:54 +0000 (21:47 +0000)]
Update based on norwegian
gtk+/po/da.po
jacob berkman [Sat, 20 Oct 2001 04:38:55 +0000 (04:38 +0000)]
get them from $(top_srcdir)/gtk/stock-icons/ rather than
2001-10-20 jacob berkman <jacob@ximian.com>
* gtk/Makefile.am (HTML_IMAGES): get them from
$(top_srcdir)/gtk/stock-icons/ rather than
../../../gtk/stock-items/
Manish Singh [Sat, 20 Oct 2001 01:39:17 +0000 (01:39 +0000)]
since GtkIMContext derives directly from GObject now, we have to use the
Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
* gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
from GObject now, we have to use the g_object_* functions, not
gtk_object_*.
Kristian Rietveld [Fri, 19 Oct 2001 20:53:08 +0000 (20:53 +0000)]
we probably have rows_reordered nailed down now (this code is not yet
Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
nailed down now (this code is not yet ready for general consumption)
Manish Singh [Fri, 19 Oct 2001 20:46:43 +0000 (20:46 +0000)]
correct docs for use_align
Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
* gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
for use_align
Owen Taylor [Fri, 19 Oct 2001 19:48:31 +0000 (19:48 +0000)]
Add gtkimcontextsimple.
Fri Oct 19 15:44:52 2001 Owen Taylor <otaylor@redhat.com>
* gtk/Makefile.am gtk/gtk-sections.txt gtk/gtk-docs.sgml:
Add gtkimcontextsimple.
Owen Taylor [Fri, 19 Oct 2001 19:47:37 +0000 (19:47 +0000)]
Missed ChangeLog commit.
Owen Taylor [Fri, 19 Oct 2001 19:47:19 +0000 (19:47 +0000)]
Really remove GtkPacker.
Owen Taylor [Fri, 19 Oct 2001 19:46:49 +0000 (19:46 +0000)]
Export GtkIMContextSimple publically. (#61862)
Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
Owen Taylor [Fri, 19 Oct 2001 19:28:27 +0000 (19:28 +0000)]
Make GtkIMContext derive from GObject, not GtkObject. (#62621)
Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
* gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
GObject, not GtkObject. (#62621)
Matthias Clasen [Fri, 19 Oct 2001 17:57:26 +0000 (17:57 +0000)]
Forgotten in last commit
Matthias Clasen [Fri, 19 Oct 2001 17:51:17 +0000 (17:51 +0000)]
Switch to DocBook 4.1 (for the PNG notation).
* gtk/gtk-docs.sgml: Switch to DocBook 4.1 (for the PNG notation).
* gtk/Makefile.am, gtk/tmpl/gtkstock.sgml: Add inlinegraphics for
the stock icons.
Owen Taylor [Fri, 19 Oct 2001 17:03:14 +0000 (17:03 +0000)]
Remove now useless include of unistd.h, fix wrong argument
Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
* tests/testsocket.c: Remove now useless include of unistd.h,
fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
Owen Taylor [Fri, 19 Oct 2001 16:26:09 +0000 (16:26 +0000)]
Fix up for change to Pango font API. #61933. (Untested, even for
Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkfont-fb.c: Fix up for change to
Pango font API. #61933. (Untested, even for compilation.)
Owen Taylor [Fri, 19 Oct 2001 15:27:43 +0000 (15:27 +0000)]
Actually export gtk_disable_setlocale(). (Caught by Sven Neumann)
Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
export gtk_disable_setlocale(). (Caught by Sven Neumann)
Havoc Pennington [Thu, 18 Oct 2001 23:38:52 +0000 (23:38 +0000)]
fix compilation
2001-10-18 Havoc Pennington <hp@redhat.com>
* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
Havoc Pennington [Thu, 18 Oct 2001 23:23:34 +0000 (23:23 +0000)]
Change button signals to GTK_RUN_LAST, #50239
2001-10-18 Havoc Pennington <hp@redhat.com>
* gtk/gtkbutton.c (gtk_button_class_init): Change button signals
to GTK_RUN_LAST, #50239
Hidetoshi Tajima [Thu, 18 Oct 2001 22:35:15 +0000 (22:35 +0000)]
Support "*" for all locales with least priority when to select default im
* gtk/gtkimmodule.c (match_locale):
Support "*" for all locales with least priority
when to select default im module, #58201
Matthias Clasen [Thu, 18 Oct 2001 22:08:33 +0000 (22:08 +0000)]
Resurrect 1.2 documentation. (#62604)
* gdk/tmpl/visuals.sgml: Resurrect 1.2 documentation. (#62604)
* gtk/tmpl/gtkpaned.sgml: Fixes. (#62146)
* gtk/tmpl/gtkgamma.sgml: Fixes. (#62155)
* gtk/Makefile.am (IGNORE_HFILES): Add xembed.h (#61929)
Matthias Clasen [Thu, 18 Oct 2001 22:05:23 +0000 (22:05 +0000)]
Fix docs. (#61976)
* gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
Fix docs. (#61976)
* gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
* gtk/gtkliststore.c: Fix docs. (#61672, #61675)
Matthias Clasen [Thu, 18 Oct 2001 20:23:17 +0000 (20:23 +0000)]
Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup and
* gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
* gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
Matthias Clasen [Thu, 18 Oct 2001 20:16:53 +0000 (20:16 +0000)]
Add GdkPixbuf, GdkPixbufAnimation and GdkPixbufAnimationIter. (#62590
* gdk-pixbuf/gdk-pixbuf.types: Add GdkPixbuf,
GdkPixbufAnimation and GdkPixbufAnimationIter. (#62590
* gtk/tmpl/gtkscrolledwindow.sgml: Replace GtkCList by
GtkTreeView in example. (#62200)
Matthias Clasen [Thu, 18 Oct 2001 20:15:53 +0000 (20:15 +0000)]
Don't restrict the width of the spinbutton entry field to 10 digits.
* gtk/gtkspinbutton.c (gtk_spin_button_size_request):
Don't restrict the width of the spinbutton entry field
to 10 digits. (#58681)
Matthias Clasen [Thu, 18 Oct 2001 20:12:24 +0000 (20:12 +0000)]
Don't dereference context when it may be NULL. (#62344)
* io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference
context when it may be NULL. (#62344)
Jonathan Blandford [Thu, 18 Oct 2001 18:58:47 +0000 (18:58 +0000)]
new test program for the tree.
Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
* tests/testtreeflow.c: new test program for the tree.
Jonathan Blandford [Thu, 18 Oct 2001 18:39:36 +0000 (18:39 +0000)]
fix small bug reported by (Oleg Maiboroda), #62600
Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
reported by (Oleg Maiboroda), #62600
Michael Meeks [Thu, 18 Oct 2001 00:53:04 +0000 (00:53 +0000)]
impl 'text' (gtk_entry_class_init): add the 'text' prop.
2001-10-18 Michael Meeks <michael@ximian.com>
* gtk/gtkentry.c (gtk_entry_set_property),
(gtk_entry_get_property): impl 'text'
(gtk_entry_class_init): add the 'text' prop.
(gtk_entry_insert_text): notify 'text' changed.
(gtk_entry_delete_text): ditto.
Matthias Clasen [Wed, 17 Oct 2001 21:41:47 +0000 (21:41 +0000)]
Documentation updates. Updates.
* gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c: Documentation updates.
* gtk/tmpl/gtkdnd.sgml, gtk/tmpl/gtkclipboard.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/threads.sgml,
gdk/tmpl/x_interaction.sgml: Updates.
Owen Taylor [Wed, 17 Oct 2001 19:20:15 +0000 (19:20 +0000)]
Fix mistake in truncating length of text to MAX_SIZE. (Found by Padraig
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Owen Taylor [Tue, 16 Oct 2001 23:28:45 +0000 (23:28 +0000)]
Rename ACTIVATE_MNEMONIC enum to MNEMONIC_ACTIVATE; signal was changed a
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
MNEMONIC_ACTIVATE; signal was changed a long time
ago.
* gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
Fix wrong return statement. (Reported by HideToshi
Tajima and others.)
* gtk/gtklabel.h (struct _GtkLabelClass): Remove
left over select_all vfunc.
Matthias Clasen [Tue, 16 Oct 2001 21:18:10 +0000 (21:18 +0000)]
Documentation. Spelling fixes.
* gdk-pixdata.c, gdk-pixdata.h: Documentation.
* gdk-pixbuf-csource.1: Spelling fixes.
Owen Taylor [Tue, 16 Oct 2001 21:02:24 +0000 (21:02 +0000)]
Add a utility function to translate coordinates relative to one widget's
Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
a utility function to translate coordinates relative to
one widget's allocation to coordinates relative to another
widget's allocation.
* gtk/gtkradiobutton.c: Add a special ->focus() implementation
that:
- only accepts external focus if there is no active
member of the group or the button is active.
- makes arrow keys move the active button as well
as the focus
- make tab tab out directly.
This makes a radio button group act as a single focus location.
(#53577).
* gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
it was only a small optimization that didn't matter and made
things more complicated.
* gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
sorter for FOCUS_TAB as we did for the other focus directions,
sort by center of widgets, not upper-left corner. (Shouldn't
matter in general.)
* gtk/gtkcontainer.c: Restructure code to remove duplicate code
from the different types of focusing: encapsulate sorting the
widgets for the focus direction into one routine
(gtk_container_focus_sort()) and then share the work of moving the
focus between the different focus directions.
* gtk/gtkcontainer.c: Fix bug where arrow navigation might not
work correctly with focus chains containing non-immediate
children. Sorting was being done using allocation coordinates for
each widget in the focus chain, and if there were intermediate
window-widgets, these allocations would not be in the same
coordinate system.
Jonathan Blandford [Tue, 16 Oct 2001 19:45:34 +0000 (19:45 +0000)]
add a mnemonic_activate function to option menu.
Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
mnemonic_activate function to option menu.
Jonathan Blandford [Mon, 15 Oct 2001 18:06:50 +0000 (18:06 +0000)]
Minor documentation fix
Murray Cumming [Mon, 15 Oct 2001 13:59:34 +0000 (13:59 +0000)]
Fixed signal marshaller in GtkToolbar.
Murray Cumming [Mon, 15 Oct 2001 13:52:13 +0000 (13:52 +0000)]
Fixed some parameter types in calls to g_signal_new().
Stanislav Visnovsky [Sun, 14 Oct 2001 14:31:00 +0000 (14:31 +0000)]
Updated Slovak translation.
2001-10-14 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
Matthias Clasen [Sat, 13 Oct 2001 18:55:01 +0000 (18:55 +0000)]
Update.
* gdk/tmpl/x_interaction.sgml: Update.
Valek Frob [Sat, 13 Oct 2001 14:35:03 +0000 (14:35 +0000)]
Updated russian translation.,
Christophe Merlet [Sat, 13 Oct 2001 08:08:00 +0000 (08:08 +0000)]
Updated French translation.
Tim Janik [Sat, 13 Oct 2001 05:52:14 +0000 (05:52 +0000)]
to compare pattern specs, use g_pattern_spec_equal() instead of direct
Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
* gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
specs, use g_pattern_spec_equal() instead of direct field accesses.
upon compressing two equal paths of the same type, the resulting
priority has to be the maximum.
* gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
GtkPathPriorityType enum and make it a macro.
Matthias Clasen [Fri, 12 Oct 2001 20:59:08 +0000 (20:59 +0000)]
Fix some doc comments.
* gtk/gtkwidget.c: Fix some doc comments.
Joshua N Pritikin [Fri, 12 Oct 2001 18:39:14 +0000 (18:39 +0000)]
Fix to work on empty models.
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
on empty models.
Matthias Clasen [Thu, 11 Oct 2001 20:37:51 +0000 (20:37 +0000)]
Remove stale gdk backend includes.
* gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
Remove stale gdk backend includes.
Michael Meeks [Thu, 11 Oct 2001 06:14:46 +0000 (06:14 +0000)]
add enable_empty and value_in_list properties.
2001-10-10 Michael Meeks <michael@ximian.com>
* gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
and value_in_list properties.
(gtk_combo_set_value_in_list): notify change.
(gtk_combo_set_property, gtk_combo_get_property): impl. prop.
James Henstridge [Thu, 11 Oct 2001 02:44:17 +0000 (02:44 +0000)]
add AS=CC and ASFLAGS=CFLAGS substitutions so that gtk+ can be built with
2001-10-11 James Henstridge <james@daa.com.au>
* configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
that gtk+ can be built with automake 1.5 while not breaking
things for automake 1.4.
Owen Taylor [Wed, 10 Oct 2001 21:54:25 +0000 (21:54 +0000)]
Call setlocale (LC_ALL, ""). (#60606)
Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
(#60606)
* gtk/gtkmain.c (gtk_disable_setlocale): Add function
to disable calling setlocale (LC_ALL, "").
* gtk/gtkmain.c (gtk_set_locale): Indicate in the
docs that this function is not typically useful.
* gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
Automatically initialize GDK for the current locale
on gdk_init(). Don't reset locale to C when
XSupportsLocale() fails.
* gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
useless checks for UTF-8 locale breakage that mattered
only for X.
* examples/calendar/calendar.c
tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
gtk_set_locale().
* gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
Matthias Clasen [Wed, 10 Oct 2001 21:52:42 +0000 (21:52 +0000)]
Updates.
* gtk/gtk-sections.txt, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtkseparatormenuitem.sgml, gtk/tmpl/gtknotebook.sgml,
gtk/tmpl/gtkstatusbar.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkradiomenuitem.sgml: Updates.
* gdk-pixbuf/gdk-pixbuf-sections.txt,
gdk-pixbuf/tmpl/gdk-pixbuf.sgml: Follow recent API changes.
Kristian Rietveld [Wed, 10 Oct 2001 19:21:41 +0000 (19:21 +0000)]
cvs got a broken pipe signal, missed these two. ChangeLog is already there.
Kristian Rietveld [Wed, 10 Oct 2001 19:18:32 +0000 (19:18 +0000)]
added gtk_tree_model_get_iter_from_string().
Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
Fixes bug #61904
Owen Taylor [Wed, 10 Oct 2001 16:56:54 +0000 (16:56 +0000)]
Call setlocale (LC_ALL, ""). (#60606)
Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
(#60606)
* gtk/gtkmain.c (gtk_disable_setlocale): Add function
to disable calling setlocale (LC_ALL, "").
* gtk/gtkmain.c (gtk_set_locale): Indicate in the
docs that this function is not typically useful.
* gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
Automatically initialize GDK for the current locale
on gdk_init(). Don't reset locale to C when
XSupportsLocale() fails.
* gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
useless checks for UTF-8 locale breakage that mattered
only for X.
* examples/calendar/calendar.c
tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
gtk_set_locale().
* gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
Owen Taylor [Wed, 10 Oct 2001 16:56:18 +0000 (16:56 +0000)]
Get rid of GDK_PIXBUF_ERROR_HEADER/PIXEL_CORRUPT and use CORRUPT_IMAGE.
Wed Oct 10 11:52:17 2001 Owen Taylor <otaylor@redhat.com>
* gdk-pixdata.c gdk-pixbuf.h: Get rid of
GDK_PIXBUF_ERROR_HEADER/PIXEL_CORRUPT and use CORRUPT_IMAGE.
Get rid fo GD_PIXBUF_ERROR_UNKNOWN_FORMAT and use the
existing UKNOWN_TYPE error. (#58308)
* gdk-pixbuf.h, gdk-pixdata.c: Rename gdk_pixbuf_new_from_stream()
back to gdk_pixbuf_new_from_inline(). Rework docs to try
and be helpful for the common case. (#58308)
Jonathan Blandford [Wed, 10 Oct 2001 05:35:12 +0000 (05:35 +0000)]
new function, #61923 (gtk_tree_selection_path_is_selected): Ditto
Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
new function, #61923
(gtk_tree_selection_path_is_selected): Ditto
Matthias Clasen [Tue, 9 Oct 2001 23:29:46 +0000 (23:29 +0000)]
Update.
* gtk/tmpl/gtkcalendar.sgml, gtk/tmpl/gtkeditable.sgml: Update.
Matthias Clasen [Tue, 9 Oct 2001 22:35:11 +0000 (22:35 +0000)]
Add entity for tmpl/inline.sgml.
* gdk-pixbuf/gdk-pixbuf.sgml: Add entity for tmpl/inline.sgml.
* gdk-pixbuf/tmpl/inline.sgml: Update.
* gtk/gtk-sections.sgml: Update.
Jonathan Blandford [Tue, 9 Oct 2001 22:24:23 +0000 (22:24 +0000)]
We're a gobject, not a GtkObject. Thanks andersca.
Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
not a GtkObject. Thanks andersca.
* gtk/gtkliststore.c (gtk_list_store_finalize): ditto
Jonathan Blandford [Tue, 9 Oct 2001 18:51:43 +0000 (18:51 +0000)]
fix broken code.
Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeviewcolumn.c
(gtk_tree_view_model_sort_column_changed): fix broken code.
Matthias Clasen [Mon, 8 Oct 2001 21:54:18 +0000 (21:54 +0000)]
s/succesfully/successfully/g
* gtk/gtkselection.c: s/succesfully/successfully/g
Matthias Clasen [Mon, 8 Oct 2001 21:25:33 +0000 (21:25 +0000)]
Update.
* gdk-pixbuf/gdk-pixbuf-sections.txt,
gdk-pixbuf/Makefile.am, gdk-pixbuf/tmpl/creating.sgml: Update.
* gdk-pixbuf/tmpl/inline.sgml: New file.
Havoc Pennington [Mon, 8 Oct 2001 05:01:09 +0000 (05:01 +0000)]
remove unused enum
2001-10-08 Havoc Pennington <hp@pobox.com>
* demos/gtk-demo/stock_browser.c: remove unused enum
* gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
pass the current selection state of the node in to the user
selection func
Matthias Clasen [Sun, 7 Oct 2001 18:59:46 +0000 (18:59 +0000)]
Update.
* gdk/tmpl/properties.sgml, gdk/tmpl/events.sgml,
gdk/tmpl/regions.sgml, gdk/tmpl/general.sgml,
gdk/tmpl/keys.sgml: Update.
* gdk/gdk-overrides.txt, gdk/gdk-sections.txt: Remove nanox traces.
Fatih Demir [Sun, 7 Oct 2001 14:49:18 +0000 (14:49 +0000)]
Update.
Matthias Clasen [Sat, 6 Oct 2001 22:53:49 +0000 (22:53 +0000)]
add gtkimagemenuitem, gtksettings, gtkseparatormenuitem.
* gtk/gtk-docs.sgml: add gtkimagemenuitem,
gtksettings, gtkseparatormenuitem.
* gtk/tmpl/gtktreemodelsimple.sgml: remove unused file.
Matthias Clasen [Sat, 6 Oct 2001 21:50:12 +0000 (21:50 +0000)]
Replace reference to non-existent function gdk_x11_cursor_get_xid by
* gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
non-existent function gdk_x11_cursor_get_xid
by gdk_x11_cursor_get_xcursor.
Jonathan Blandford [Sat, 6 Oct 2001 00:50:36 +0000 (00:50 +0000)]
improve warning.
Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
warning.
* gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
unref nodes, #okay61676
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
to the property; no need to clear the other columns. Also, we go
to 'unsorted' if the model supports it.
Matthias Clasen [Fri, 5 Oct 2001 21:26:48 +0000 (21:26 +0000)]
remove GtkPacker.
* gtk/gtk-sections.sgml, gtk/objects_grouped.sgml: remove GtkPacker.
Sven Neumann [Fri, 5 Oct 2001 18:51:47 +0000 (18:51 +0000)]
gdk-pixbuf/gdk-pixbuf-io.c gdk-pixbuf/gdk-pixbuf-private.h
2001-10-05 Sven Neumann <sven@gimp.org>
* gdk-pixbuf/gdk-pixbuf-io.c
* gdk-pixbuf/gdk-pixbuf-private.h
* gdk-pixbuf/gdk-pixbuf.c
* gdk-pixbuf/gdk-pixbuf.h
* gdk-pixbuf/io-jpeg.c
* gdk-pixbuf/io-png.c: changed GDK_PIXBUF_ERROR_BAD_OPTION_VALUE to
GDK_PIXBUF_ERROR_BAD_OPTION to we can use it for bad keys too. Added
new public API gdk_pixbuf_get_option() to retrieve key/value pairs
set by an image loader. Added support for saving and reading PNG tEXt
chunks in PNG images.
* demos/testpixbuf-save.c
* demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
feature.
* gdk-pixbuf/tmpl/gdk-pixbuf.sgml: adapt to changes in GDK_PIXBUF_ERROR
enum.
Kristian Rietveld [Fri, 5 Oct 2001 17:10:20 +0000 (17:10 +0000)]
should destroy the search dialog
Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
* gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
destroy the search dialog
* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
added check to prevent creation of a search dialog if there's
already one around
* gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
it instead of "search-dialog" (when getting/setting the search dialog
widget).
Jakub Steiner [Fri, 5 Oct 2001 16:01:11 +0000 (16:01 +0000)]
broken image icon
Havoc Pennington [Fri, 5 Oct 2001 01:53:04 +0000 (01:53 +0000)]
fix GtkImage overview
2001-10-04 Havoc Pennington <hp@pobox.com>
* gtk/tmpl/gtkimage.sgml: fix GtkImage overview